package com.article.mapper;

import com.article.entity.dto.AdminDao;
import com.article.entity.dto.AdminSearchDao;
import com.article.entity.pojo.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    List<Admin> getAdminPage(AdminSearchDao adminSearchDao);

    int getAdminPageCount(AdminDao search);

    int addAdmin(AdminDao adminDao);

    int updateAdmin(AdminDao adminDao);

    int deleteAdmin(Integer id);

}
